Skip to content

Add annotaterb and run annotations#1516

Merged
jazairi merged 3 commits into
mainfrom
annotaterb
Jul 21, 2026
Merged

Add annotaterb and run annotations#1516
jazairi merged 3 commits into
mainfrom
annotaterb

Conversation

@jazairi

@jazairi jazairi commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Why these changes are being introduced:

The annotate gem has been deprecated. We need a
new gem to run annotations in Rails 8.

Relevant ticket(s):

How this addresses that need:

This adds the annotaterb gem and annotates models
and routes.

Side effects of this change:

None

Developer

  • All new ENV is documented in README
  • All new ENV has been added to Heroku Pipeline, Staging and Prod
  • ANDI or Wave has been run in accordance to
    our guide and
    all issues introduced by these changes have been resolved or opened as new
    issues (link to those issues in the Pull Request details above)
  • Stakeholder approval has been confirmed (or is not needed)

Code Reviewer

  • The commit message is clear and follows our guidelines
    (not just this pull request message)
  • There are appropriate tests covering any new functionality
  • The documentation has been updated or is unnecessary
  • The changes have been verified
  • New dependencies are appropriate or there were no changes

Requires database migrations?

NO

Includes new or updated dependencies?

YES

Why these changes are being introduced:

The annotate gem has been deprecated. We need a
new gem to run annotations in Rails 8.

Relevant ticket(s):

- [ETD-693](https://mitlibraries.atlassian.net/browse/ETD-693)

How this addresses that need:

This adds the annotaterb gem and annotates models
and routes.

Side effects of this change:

None
@mitlib
mitlib temporarily deployed to thesis-submit-pr-1516 July 21, 2026 17:56 Inactive
@coveralls

coveralls commented Jul 21, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 98.25%. remained the same — annotaterb into main

@JPrevost JPrevost self-assigned this Jul 21, 2026

@JPrevost JPrevost left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you consider adding a note to the readme like this one to keep the annotations just models? I'm not sure if the route decorations this added are helpful. I'm open to normalizing the other way though if you feel strongly it is helpful.

https://github.com/MITLibraries/timdex/blob/main/README.md#developing-this-application

@jazairi
jazairi requested a review from JPrevost July 21, 2026 19:39
@jazairi
jazairi temporarily deployed to thesis-submit-pr-1516 July 21, 2026 19:39 Inactive
Comment thread README.md Outdated

### Annotations

Please `bundle exec annotaterb models` when making changes to models to update the internal documentation.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great but there is another note about this that is now contradictory in this readme. Once you reconcile this is good to go.

@jazairi
jazairi temporarily deployed to thesis-submit-pr-1516 July 21, 2026 21:16 Inactive
@jazairi
jazairi requested a review from JPrevost July 21, 2026 21:17
@jazairi
jazairi merged commit af5206d into main Jul 21, 2026
2 checks passed
@jazairi
jazairi deleted the annotaterb branch July 21, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants